package com.dropdb.demo.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * @author Alone
 * @version 1.0
 * @date 2020/7/2 15:29
 */
@Data
public class WxProductVO {
    private Integer id;

    private Integer goodsId;

    private String[] specifications;

    //@Pattern(regexp = "^[0-9]+\\.{0,1}[0-9]*$", message = "参数值不对")
    private Double price;

    //@Pattern(regexp = "^[0-9]*$", message = "参数值不对")
    private Integer number;

    private String url;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date addTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;
}
